feat(extensions): bind imported agent models - #1946
Merged
limityan merged 1 commit intoAug 1, 2026
Merged
Conversation
limityan
force-pushed
the
yanzhn/external-agent-model-binding
branch
from
August 1, 2026 11:41
08421a8 to
5a6023b
Compare
Preserve model requests from OpenCode, Claude Code, and Codex agents, then resolve them through existing BitFun model configuration and approval owners. Expose fail-closed binding controls across Desktop, Peer Host, GUI, and TUI without adding plugin runtime behavior.
limityan
force-pushed
the
yanzhn/external-agent-model-binding
branch
from
August 1, 2026 11:45
5a6023b to
4bfc2bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
Default、Inherit、Reference三种通用语义进入 BitFun。Inherit在任务开始时只解析一次父会话模型。架构与边界
product-domains持有,OpenCode / Claude Code / Codex adapter 仅负责源格式翻译。ExternalSourcesConfig、preferenceRevision和原子更新路径。deny_unknown_fields兼容。用户体验
/agent提供同等审阅信息与/agent bind操作。CI 修复
check-core-boundaries:新增的产品域合同与 core facade 已有真实调用方,但未登记进既有公开 API 治理清单。gcwing/main@ef8cea48b,并针对新增的 MiniApp coordinator 改动重跑模型绑定与 generation lease 回归。对抗性复审
独立复审发现并修复了两项问题:legacy v0 快照泄漏新增字段导致旧端拒绝响应,以及合法
InheritAgent 被误显示为不可用。修复后二次复核未发现 P0-P3 可执行问题;CI 治理补丁也未扩大例外面或绕过边界检查。验证
cargo check --workspacecargo test -p bitfun-product-domains --features external-sources --test external_source_contracts(44 passed)pnpm run type-check:webpnpm run build:webpnpm run i18n:contract:test(37 passed)pnpm run i18n:auditnode --test scripts/check-core-boundaries.test.mjs(16 passed)node scripts/check-core-boundaries.mjspnpm run check:repo-hygienegit diff --check gcwing/main补充:Windows 本地完整 Web 套件为 372/373 文件通过;唯一失败是最新主线
RemoteConnectDialog.contract.test.ts以 LF 字面量匹配 CRLF 源文件,本 PR 未修改相关文件,扩展定向测试与生产 Web 构建均通过。